import 'package:base_flutter/base_flutter.dart';
import 'package:flutter/material.dart';
import 'package:flutter/src/widgets/framework.dart';
import 'package:ls_work/net/response/leave_record_list.dart';

import '../../viewmodel/leave/finish_leave_view_model.dart';

class FinishLeavePage extends BaseStatefulMvvmWidget{
  final LeaveRecordList item;
  FinishLeavePage({required this.item});

  @override
  State<StatefulWidget> createState() =>_FinishLeaveState();

}

class _FinishLeaveState extends BaseMvvmState<FinishLeaveViewModel,FinishLeavePage>{
  @override
  Widget buildLoadingContentView() {
    return viewModel.contentView();
  }

  @override
  Widget buildRootView(BuildContext context, Widget loadingContentWidget) {
    return Scaffold(
      appBar: AppBar(title: Text("销假"),),
      body: loadingContentWidget,
    );
  }

  @override
  FinishLeaveViewModel createViewModel() {
    return FinishLeaveViewModel(context,item: widget.item);
  }

  @override
  void onRetryClick() {
  }

}